package com.xxx.service.user;

import com.xxx.common.enums.LoginType;
import com.xxx.common.enums.SmsType;
import com.xxx.model.user.req.ReqRefreshTokenVo;
import com.xxx.model.user.res.ResRefreshTokenVo;

/**
 * @author Flying
 * @Description
 * @date 13:29 2018-08-24
 **/
public interface UserCommonService {

    /**
     * 刷新token
     * @param reqRefreshTokenVo
     * @return
     */
    ResRefreshTokenVo refreshToken(ReqRefreshTokenVo reqRefreshTokenVo);

    /**
     * 生成token
     * @param userId
     * @return
     */
    ResRefreshTokenVo createToken(String userId, LoginType loginType);


    /**
     * description:判断验证码是否一致
     * @author: Flying
     * @date: 2018-10-18 15:34
     * @params:
     * @return
     */
    Boolean checkSmsCode(String phone,String code ,SmsType smsType);

}
